Page({
    data: {
        activeTab: 'all',
        activeNav: 'order'
    },
    onTabTap: function(e) {
        this.setData({
            activeTab: e.currentTarget.dataset.tab
        });
    },
    onNavTap: function(e) {
        const nav = e.currentTarget.dataset.nav;
        this.setData({
            activeNav: nav
        });
    }
});